package com.pj.point.self;

import android.os.Bundle;
import android.view.MenuItem;
import android.webkit.WebView;

import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import com.pj.point.R;

public class AboutUs extends AppCompatActivity {

    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_us);
        ActionBar bar = getSupportActionBar();
        bar.setTitle("关于我们");
        bar.setDisplayHomeAsUpEnabled(true);
        initView();
    }

    @Override
    public boolean onOptionsItemSelected(@NonNull MenuItem item) {
        finish();
        return super.onOptionsItemSelected(item);
    }

    private void initView() {
        webView = (WebView) findViewById(R.id.web_view);
        webView.loadUrl("https://privacy.mi.com/xiaoai-sdk/zh_CN/");
    }
}